# -*- coding: utf-8 -*-
import multiprocessing
import time
import turtle

import win32api
import signal
import os
import win32con

turtle.setup(width=0.3,height=0.3)
turtle.screensize(300,300, "deepskyblue")

turtle.color("white")
turtle.speed(1)
turtle.penup()
time.sleep(0.5)
turtle.goto(-160, 50)
turtle.speed(1)
turtle.pendown()
turtle.write("模拟系统用户购物车下单测试", font=("Times", 18, "bold"))
time.sleep(1)
turtle.color("red")
turtle.speed(1)
turtle.penup()
time.sleep(0.5)
turtle.goto(-80, -80)
turtle.speed(1)
turtle.pendown()
turtle.write("等待系统运行 . . .", font=("Times", 16, "bold"))
# 隐藏箭头
turtle.hideturtle()
time.sleep(2)
# try:
#     # 获取pid并杀死进程
#     pid = os.getpid()
#     print(pid)
#     os.kill(pid, signal.SIGILL)
# except:
#     print('杀死进程失败')
#
# # 暂停界面，使得用户能够看见展示的图形
# turtle.done()
